package cn.base.day08;

public class Test08 {
    public static void main(String[] args) {
        //
        String s = "123321";
        StringBuilder s1 = new StringBuilder(s);

        //反转
        s1.reverse();

        //把反转后的s1转化为String类型
        String s2 = s1.toString();

        //对比 反转后的字符串 和反转前的字符串是否内容一致
        if (s.equals(s2)){
            System.out.println("对称");
        }else {
            System.out.println("不对称");
        }

    }
}
